package com.day15.text;

public class ThreadTest {
    public static void main(String[] args) {
        int[] nums = {44,22,88,66,4};

        int[] newNums = new int[nums.length+1];
        //复制元素
        for(int i =0; i<nums.length; i++){
            newNums[i] =  nums[i];//将原数组元素赋值给新数组
        }
        nums = newNums;


        for(int num:nums){
            System.out.println(num);
        }


    }
}
